package com.jeasonzhao.report.codes;

import com.jeasonzhao.commons.basic.IntegerPair;

public final class BooleanOperations extends IntegerPair
{
    private static final long serialVersionUID = 1L;
    public static final BooleanOperations Equals = new BooleanOperations(1,"eq,equal");
    public static final BooleanOperations NotEquals = new BooleanOperations(2,"neq,notequal");
    public static final BooleanOperations Great = new BooleanOperations(3,"gt,greater,greatest");
    public static final BooleanOperations GreatOrEquals = new BooleanOperations(4,
        "gteq,greaterEquals,greatestEquals,greatOrEquals,greaterOrEquals,greatestOrEquals");
    public static final BooleanOperations Little = new BooleanOperations(5,"lt,less,lessthan");
    public static final BooleanOperations LittleOrEquals = new BooleanOperations(6,
        "lteq,lessEquals,lessthanEquals,littleOrEquals,lessOrEquals,littleEquals,lessthanOrEquals");
    public static final BooleanOperations Between = new BooleanOperations(7);
    public static final BooleanOperations NotBetween = new BooleanOperations(8);
    public static final BooleanOperations In = new BooleanOperations(9);
    public static final BooleanOperations NotIn = new BooleanOperations(10);
    public static final BooleanOperations Like = new BooleanOperations(11);
    public static final BooleanOperations NotLike = new BooleanOperations(12);

    protected BooleanOperations(int nId,String strAlias)
    {
        super(nId,null,strAlias);
    }

    protected BooleanOperations(int nId)
    {
        super(nId,null);
    }

    public static BooleanOperations fromName(String strName)
    {
        return(BooleanOperations) IntegerPair.findConstant(BooleanOperations.class,strName,Equals);
    }

    public int hashCode()
    {
        return super.hashCode();
    }
}
